﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAchive.Model.ScreenModel
{
    /// <summary>
    /// 大屏数据
    /// </summary>
    public class ScreenData
    {
        public Header Header { get; set; }
        public FaultCircle FaultCircle { get; set; }

        public FaultTotal FaultTotal { get; set; }

        public FaultDetailBar FaultDetailBar { get; set; }

        public List<DetectDetail> Top6 { get; set; }


    }

    public class Header
    {
        /// <summary>
        /// ok数量
        /// </summary>
        public int OKNumber { get; set; }
        /// <summary>
        /// ng数量
        /// </summary>
        public int NGNumber { get; set; }

        /// <summary>
        /// 检测总数
        /// </summary>
        public int CheckTotal { get; set; }

        /// <summary>
        /// 优秀率
        /// </summary>
        public decimal YouxiuRate { get; set; }

        /// <summary>
        /// el检测下ng数量
        /// </summary>
        public int EL_NG { get; set; }

        /// <summary>
        /// Vi下ng数量
        /// </summary>
        public int VI_NG { get; set; }
    }


    public class FaultCircle
    {
        /// <summary>
        /// el缺陷占比分析图
        /// </summary>
        public List<ZhanBi> EL_Circle { get; set; }
        /// <summary>
        /// vi缺陷占比分析图
        /// 
        /// </summary>
        public List<ZhanBi> VI_Circle { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class ZhanBi
    {
        /// <summary>
        /// 缺陷名称
        /// </summary>
        public string FaultName { get; set; }
        /// <summary>
        /// 缺陷数量
        /// </summary>
        public int FaultNumber { get; set; }

    }


    public class FaultDetailBar
    {
        public List<FaultDetail> EL_Bar { get; set; }

        public List<FaultDetail> VI_Bar { get; set; }
    }
    /// <summary>
    /// 缺陷详情图表
    /// </summary>
    public class FaultDetail
    {
        /// <summary>
        /// 缺陷名称
        /// </summary>
        public string FaultName { get; set; }

        /// <summary>
        /// 缺陷数量
        /// </summary>
        public int FaultNumber { get; set; }
        /// <summary>
        /// 缺陷占比
        /// </summary>
        public decimal FaultRate { get; set; }
    }


    public class FaultTotal
    {
        /// <summary>
        /// el缺陷总数
        /// </summary>
        public int EL_Fault { get; set; }

        /// <summary>
        /// vi缺陷总数
        /// </summary>
        public int VI_Fault { get; set; }
    }
}
